package MyOffer.JavaGuide;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;

/**
 * 键盘输入的常见两种方式
 */
public class KeyboardEntry {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        System.out.println(i);

        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        String s = input.readLine();
        System.out.println(s);

        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
    }
}
